<?php


/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/
/**
 * @var \Illuminate\Support\Facades\Route $router
 */

Route::group([
    'prefix' => 'auth',
], function ($router) {
    /**
     * @var \Illuminate\Support\Facades\Route $router
     */
    $router->post('login', 'AuthController@login');
    $router->post('logout', 'AuthController@logout');
    $router->post('refresh', 'AuthController@refresh');
    $router->post('me', 'AuthController@me');
    $router->post('user', 'AuthController@addUser');

});

Route::get('weather/{city}', 'WeatherController@show');